<?php defined('SYSPATH') or die('No direct script access');

class Application_Model extends ORM {
	
	protected $_created_column = array('column' => 'date_created', 'format' => 'Y-m-d H:i:s');
	
	protected $_updated_column = array('column' => 'date_updated', 'format' => 'Y-m-d H:i:s');
	
	protected $_ignored_columns = array('password_confirm');
	
	protected $_rules = array(
		'username' => array(
			'not_empty'	=> TRUE,
			'min_length' => array(4),
            'max_length' => array(32),
			'regex'      => array('/^[-\pL\pN_.]++$/uD'),
		),
		'password' => array(
			'not_empty' => TRUE,
			'min_length' => array(6),
			'max_length' => array(128),
		)
	);
}

?>